import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CatalogComponent } from './home/catalog/catalog.component';

const routes: Routes = [
  { path: '', component: CatalogComponent },
  { path: 'home', loadChildren: 'src/app/home/home.module#HomeModule' },
  { path: 'mobile', loadChildren: 'src/app/r-mobile/r-mobile.module#RMobileModule' }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
